﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Input;
using Microsoft.Practices.Prism.Commands;

namespace SaryaAccounting
{
    public class Window1ViewModel
    {
        public ICommand SaveCommand { get; private set; }

        public Window1ViewModel()
        {
            SaveCommand = new DelegateCommand(OnSave, OnCanSave);   
        }

        protected virtual bool OnCanSave()
        {
            return true;
        }

        protected virtual void OnSave()
        {
        }
    }

}
